package acm.pta9;

import java.util.Scanner;

public class T4 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int ares=5000;
        int res=ares-x*y/2-(100-x)*(100-y)/2-(100-x)*(y);
        System.out.println(res);
    }
}
